<?php
/**
 * Created by PhpStorm.
 * User: 小蛮哼哼哼
 * Email: 243194993@qq.com
 * Date: 2021/10/22
 * Time: 16:04
 * motto: 现在的努力是为了小时候吹过的牛逼！
 */

declare(strict_types=1);

namespace app\common\validate;


class Collection extends Base
{
    protected $rule = [
        "title" => "require",
        "money" => "require",
        "venue" => "require",
        "start_time" => "require",
        "end_time" => "require",
        "performer" => "require",
        "thumb" => "require",
        "service_desc" => "require",
        "mark" => "require",
        "description" => "require"
    ];
    protected $message = [
        "title.require" => "剧场名称不能为空",
        "money.require" => "售价不能为空",
        "venue.require" => "请选择剧院",
        "start_time.require" => "请选择演出时间",
        "end_time.require" => "请选择演出结束时间",
        "performer.require" => "请选择演员",
        "thumb.require" => "请上传图标",
        "service_desc.require" => "请填写服务说明",
        "mark.require" => "请填写演出介绍",
        "description.require" => "请填写购票须知",
    ];
    protected $scene = [
        "add" => ['title', 'money', 'venue', 'start_time','end_time', 'performer', 'thumb', 'service_desc', 'mark', 'description']
    ];
}